package bs.owb.interceptors.service.impl;

import bs.owb.interceptors.MyTransactional;
import bs.owb.interceptors.domain.Customer;
import bs.owb.interceptors.service.CustomerService;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import java.util.List;

@Named("customerService")
@ApplicationScoped
public class CustomerServiceImpl implements CustomerService {

    @MyTransactional
    public void save(Customer customer) {
        //just do nothing
    }

    @MyTransactional
    public void delete(Customer customer) {
        //just do nothing
    }

    @MyTransactional
    public List<Customer> findAll() {
        return null;
    }
}
